﻿using System.Collections.Generic;
using CodeStash.Common.DataAccess.EntityFramework;
using CodeStash.Common.Enums;

namespace CodeStash.Models.Search
{




    public class ShowSearchResultsViewModel
    {


        #region Ctor
        public ShowSearchResultsViewModel(
            SearchType searchType,
            Language language,
            Visibility visibility,
            string searchValue,
            int totalCountOfSnippets,
            List<CodeSnippet> codeSnippets
        )
        {
            SearchType = searchType;
            Language = language;
            Visibility = visibility;
            SearchValue = searchValue;
            TotalCountOfSnippets = totalCountOfSnippets;
            CodeSnippets = codeSnippets; 
        }
        #endregion

 
        #region Public Properties

        public Language Language { get; private set; }
        public Visibility Visibility { get; private set; }
        public string SearchValue { get; private set; }
        public SearchType SearchType { get; private set; }
        public int TotalCountOfSnippets { get; private set; }
        public List<CodeSnippet> CodeSnippets { get; private set; }

        #endregion
    }

}